﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DietStructure_rjfldb.aspx.cs" Inherits="Catering.DisplayBoards.DietStructure_rjfldb" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<%@ Register src="../UCPanle/DDLTool.ascx" tagname="DDLTool" tagprefix="uc1" %>

<%@ Register src="../UCPanle/UCSearchToolForPersonAvg.ascx" tagname="UCSearchToolForPersonAvg" tagprefix="uc2" %>

<%@ Register src="../UCPanle/UCSearchToolByZW.ascx" tagname="UCSearchToolByZW" tagprefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="../Style/zhezhao.js"></script>
    <script src="../Style/xxk.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../Style/center.css" />
    <link rel="stylesheet" type="text/css" href="../Style/zhezhao.css" />
    <script type="text/javascript" src="../Catering_Page/Tool_Reporter/js/jquery.min.js"></script>
    <style type="text/css">
        .report_xh_title{font-weight:bold; font-size:16px; color:#0066CC;}
    </style>
    <script type="text/javascript">
        function GetDataGroup(title, xtype, data) {
            var xcategory = ['1日', '2日', '3日', '4日', '5日', '6日', '7日', '8日', '9日', '10日', '11日', '12日', '13日', '14日', '15日', '16日', '17日', '18日', '19日', '20日', '21日', '22日', '23日', '24日', '25日', '26日', '27日', '28日', '29日', '30日', '31日'];
            if (xtype == 2) {
                xcategory = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'];
            }
            var chart;
            var banzuptions = {
                chart: { renderTo: 'container' }, //容器ID
                title: { text: title }, //报表大标题
                //subtitle: { text: '报表小标题' }, //报表小标题
                xAxis: {//x轴
                    type: 'sdf',
                    categories: xcategory,
                    gridLineWidth: 0,
                    labels: { align: 'left', x: -6, y: 16 }
                },
                yAxis: [{ // left y axis
                    title: {
                        text: null
                    },
                    labels: {
                        align: 'left',
                        x: 3,
                        y: 16,
                        formatter: function () {
                            return Highcharts.numberFormat(this.value, 0);
                        }
                    },
                    showFirstLabel: false
                },
                { // right y axis
                    linkedTo: 0,
                    gridLineWidth: 1,
                    opposite: true,
                    title: { text: null },
                    labels: {
                        align: 'right',
                        x: -3,
                        y: 16,
                        formatter: function () {
                            return Highcharts.numberFormat(this.value, 0);
                        }
                    },
                    showFirstLabel: true
                }],
                tooltip: {
                    formatter: function () {
                        return '<b>' + this.x + '：</b><br/>' +
                        this.series.name + '：' + this.y;
                    }
                },
                series: []
            };
            for (var i = 2; i < arguments.length; i++) {
                banzuptions.series[i - 2] = arguments[i];
            }
            chart = new Highcharts.Chart(banzuptions);
        }

        function RefreshPage() {
            $("#Btn_Ref").trigger("click");
        }

        $(function () {
            var test = setInterval(RefreshPage, 1000 * 10);
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" ScriptMode="Release" runat="server"></asp:ScriptManager>
    <script type="text/javascript" src="../Catering_Page/Tool_Reporter/js/highcharts.js"></script>
    <script type="text/javascript" src="../Catering_Page/Tool_Reporter/js/modules/exporting.js"></script>
    <script type="text/javascript" src="../Catering_Page/Tool_Reporter/js/highslide-full.min.js"></script>
    <script type="text/javascript" src="../Catering_Page/Tool_Reporter/js/highslide.config.js" charset="utf-8"></script>        
      <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
          <ContentTemplate>
          <asp:Button ID="Btn_Ref" runat="server" Text="" style="width:0px; height:0px; border:0px;" onclick="Btn_Ref_Click" />
        <div class="Center_Content" id="div2_1" style="display: block">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none">
               <tr><td>
                   <uc3:UCSearchToolByZW ID="UCSearchToolByZW1" runat="server" />
                   </td></tr>
               <tr><td height="35" style="border:1px solid #C2DEF6; border-top:none; background-color:#E5F1FD;" valign="middle" align="center"><asp:Label ID="lblTypeTitle" runat="server" Text="" CssClass="report_xh_title"></asp:Label></td></tr>
            </table>
            <div id="container" style="width:1000px; height: 400px; margin: 0 auto"></div>
        </div>
              </ContentTemplate>
         </asp:UpdatePanel>
    </form>
</body>
</html>
